package com.itheima.service.db.impl;

import com.itheima.domain.OmsCompanyAddress;
import com.itheima.mapper.OmsCompanyAddressMapper;
import com.itheima.service.db.OmsCompanyAddressService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OmsCompanyAddressServiceImpl implements OmsCompanyAddressService {
    @Autowired
    OmsCompanyAddressMapper omsCompanyAddressMapper;
    @Override
    public List<OmsCompanyAddress> findCompanyAddress() {
        List<OmsCompanyAddress> omsCompanyAddresses = omsCompanyAddressMapper.selectList(null);
        return omsCompanyAddresses;
    }
}
